package com.dhsc.local.dao.impl.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.BqhcgzVo;
import com.dhsc.local.dao.xtqxgl.IBqhcgzDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: BqhcgzDaoImpl
 * @Description: 标签互斥规则
 * @date: 2023/11/10 11:36
 * @author: gx
 */
@Repository("bqhcgzdao")
public class BqhcgzDaoImpl implements IBqhcgzDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<BqhcgzVo> queryBqhcgz(BqhcgzVo bqhcgzVo) {
        return localSqlSessionTemplate.selectList("BqhcgzMapper.queryBqhcgz",bqhcgzVo);
    }

    @Override
    public List<BqhcgzVo> queryGzname() {
        return localSqlSessionTemplate.selectList("BqhcgzMapper.queryGzname");
    }

    @Override
    public List<BqhcgzVo> querySxname() {
        return localSqlSessionTemplate.selectList("BqhcgzMapper.querySxname");
    }

    @Override
    public int deleteBqhcgz(BqhcgzVo bqhcgzVo) {
        return localSqlSessionTemplate.delete("BqhcgzMapper.deleteBqhcgz",bqhcgzVo);
    }

    @Override
    public int insertBqhcgz(List<BqhcgzVo> bqhcgzVos) {
        return localSqlSessionTemplate.insert("BqhcgzMapper.insertBqhcgz",bqhcgzVos);
    }
}
